package com.ny.service;

import com.ny.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserService {
    public List<User> findAllUser();
    public User login(String username, String password);
    public User findUserByUsername(String username);
    int registerUser(User user);
    // 根据邮箱号查询用户信息
    User findUserByEmail(String email);
    // 发送邮箱验证码
    public void sendEmailCode(String email);
    // 根据邮箱号修改密码
    int updatePasswordByEmail( String email,  String password);
//    判断输入的验证码是否正确
    boolean checkCode(String email, String code);
}
